package com.cx.common.core.dto.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

/**
 * 响应结果
 *
 * @author _
 * @date 2020-08-24
 */
@ApiModel(description = "响应结果")
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Resp<T> extends BaseResp {

    private static final long serialVersionUID = 1L;

    /**
     * 返回数据
     */
    @ApiModelProperty(value = "返回数据")
    private T data;

    public Resp<T> fileDomain(String fileDomain) {
        setFileDomain(fileDomain);
        return this;
    }
}
